const mysql = require("mysql");
function query(sql,arr,callback){
    const connect= mysql.createConnection({
        host:"localhost",
        user:"root",
        password:"",
        port:3306,
        database:"4jieduan"
    });
    connect.connect(); //打开连接
    connect.query(sql,arr,callback);
    connect.end();
}

module.exports = {
    query : query
};